package one.stand.model;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
 * @author Administrator
 */
@Data
public class OrdersModel extends BaseModel implements Serializable {

    private Integer ordersId;

    /**
     * 下单人
     */
    private Integer userId;

    /**
     * 订单价格
     */
    private Integer orderPrice;

    /**
     * 默认线上支付
     */
    private Integer payType;

    /**
     * 收货地址
     */
    private Integer addressId;

    /**
     * 订单编号
     */
    private String ordersNo;

    /**
     * 公司id
     */
    private Integer companyId;

    private String companyName;

    /**
     * 订单状态（1待付款，2待发货，3待收货，4已完成，5交易取消，6退款成功）
     */
    private Integer orderState;

    /**
     * 支付时间
     */
    private Date payTime;

    /**
     * 支付价格
     */
    private Integer payPrice;

    private String tradeNo;

    /**
     * 配送方式
     */
    private Integer deliveryType;

    /**
     * 配送状态
     */
    private Integer deliveryState;

    /**
     * 配送时间（发货时间）
     */
    private Date deliveryTime;

    /**
     * 1未申请，2退款申请中，3退款成功
     */
    private Integer refundState;

    /**
     * 退款申请原因
     */
    private String refundRemark;

    /**
     * 下单备注
     */
    private String remark;

    private String receiveName;

    private String receivePhone;

    private String ordersIds;

    private Integer specNum;

    private Integer num;

    private Integer price;

    private Integer allPrice;

    private Integer goodsId;

    private Integer specId;

    private String photoUrl;

    private String specName;

    private String goodsName;

    private String[] ids;

    private String locationAddress;

    private String detailedAddress;

    private Integer cardId;

    private String formId;

    private String page;

    private Integer type;
    /**
     * 分享问题发现 新增属性 实体中有 数据库中没有 不知道用于 03-30
     */
    private Integer totalFee;

    private String outTradeNo;

    private String logo;

    private String phone;

    private String name;

    private String personalWx;

    private String allNum;

    private String specAttribute;

    private String key;

    private String createTimes;

    private String payTimes;

    private String nickeName;

    private Integer orderInfoId;
    private String godsName;
    private String royaltyRatio;
    private String payName;
    private String payPhone;
    private Integer level;
    private String companyKey;

    private Integer isAgent;

    /**
     * 拼团id
     */
    private Integer assembleId;

    private List<OrdersModel> ordersModelList;

    /**
     * 0：等待其他人拼团
     * 1：拼团成功
     */
    private Integer assembleSuccess;



    /**
     * 0未参加秒杀，1：秒杀商品
     */
    private Integer isKill;

    /**
     * 秒杀价格
     */
    private Integer killPrice;

    /**
     * 1：限时秒杀  2：促销秒杀
     */
    private Integer killType;
    /**
     * 秒杀结束时间
     */
    private Date killEndTime;

    // 拼团相关

    /**
     * 是否是拼团
     */
    private Integer isAssemble;

    /**
     * 拼团价格
     */
    private Integer assemblePrice;

    /**
     * 拼团状态。1:进行中;2.结束
     */
    private Integer assembleState;

    /**
     * 拼团结束时间
     */
    private Date assembleEndTime;
}